package org.wdcode.shop.helper;

import org.wdcode.base.helper.BaseEntityCacheHelper;
import org.wdcode.shop.cache.ScreenWordCache;
import org.wdcode.shop.po.ScreenWord;

/**
 * 屏蔽关键字相关业务助手类 可操作缓存
 * @author WD
 * @since JDK6
 * @version 1.0 2009-11-23
 */
public final class ScreenWordHelper extends BaseEntityCacheHelper<ScreenWordCache, ScreenWord> {
	// 屏蔽关键字助手
	private static ScreenWordHelper	helper;

	/**
	 * 实例化一个对象
	 */
	public ScreenWord newInstance() {
		return new ScreenWord();
	}

	/**
	 * 获得子类的Class
	 * @return 子类的Class
	 */
	public Class<ScreenWord> getEntityClass() {
		return ScreenWord.class;
	}

	/**
	 * 获得屏蔽关键字助手
	 * @return 屏蔽关键字助手
	 */
	public static ScreenWordHelper getHelper() {
		return helper;
	}

	/**
	 * 设置屏蔽关键字助手
	 * @param helper 屏蔽关键字助手
	 */
	public void setHelper(ScreenWordHelper helper) {
		ScreenWordHelper.helper = helper;
	}
}
